| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, {Component} from 'react'; |
||
| 24 | |||
| 25 | componentDidUpdate(prevProps) { |
||
| 26 | if(prevProps.match.params.number !== this.props.match.params.number) { |
||
| 27 | fetch("https://me-api.listrom.me/reports/week/" + this.props.match.params.number) |
||
| 28 | .then(response => response.json()) |
||
| 29 | .then(data => { |
||
| 30 | this.setState({ data: data.data.text}); |
||
| 31 | // console.log(this.state.data); |
||
| 54 | export default Report; |